

cc.Class({
    extends: cc.Component,
    
    ctor() {
    	this.isWin = false
        this.state = ck.GameState.Prepare
    },

    init(level) {
        this.level = level
    },

    setWin(win) {
        this.isWin = win
    },

    setState(state) {
        ck.log('setState', state)
        this.state = state
        this.node.emit(ck.Event.GameStateChanged)
    },

});
